<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">

<head>
    <title>响应Excel单元格点击事件</title>


    <script type="text/javascript">
        function Save() {
            document.getElementById("PageOfficeCtrl1").WebSave();
        }

        function OnCellClick(Celladdress, value, left, bottom) {
            var i = 0;
            while (i < 5) {//表格第一列的5个单元格都弹出选择对话框
                if (Celladdress == "$B$" + (4 + i)) {
                    var strRet = document.getElementById("PageOfficeCtrl1").ShowHtmlModalDialog("select", "", "left=" + left + "px;top=" + bottom + "px;width=320px;height=230px;frame=no;");
                    if (strRet != "") {
                        return (strRet);
                    }
                    else {
                        if ((value == undefined) || (value == ""))
                            return " ";
                        else
                            return value;
                    }
                }
                i++;
            }
        }
    </script>
</head>
<body>
<form id="form1">
    演示：点击Excel单元格弹出自定义对话框的效果。请看实现下面表格中的“部门名称”只能选择的效果。<br/><br/>
    <div style="width: auto; height: 700px;" th:utext="${pageoffice}">
    </div>
</form>
</body>

</html>
